﻿@model System.Web.Mvc.HandleErrorInfo

@*@{
    ViewBag.Title = "Error";
}

<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>*@


@{
    ViewBag.Title = "Page500";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var messages = ViewBag.Message.Split(Environment.NewLine.ToCharArray());
    var path = ViewBag.Path;
    
}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            500 Error Page
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> @Model.ControllerName</a></li>
            <li><a href="#">@Model.ActionName</a></li>
            <li class="active">500 error</li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content">
        
            <h3 class="headline text-red"><i class="fa fa-warning text-red"></i> Oops! Something went wrong.</h3>

            <div class="box">
                <div class="box-header">
                    <h3 class="box-title"></h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    
                        <p style="font-weight:bold;font-size: 14px;" class="r-p">Exception details:</p>
                        <p class="r-p"> Exception:</p>
                        <ul style="padding-bottom: 4px; padding-left: 40px;">
                            @foreach (var item in messages)
                            {
                                if (!string.IsNullOrEmpty(item))
                                {
                                    <li style="padding-bottom: 4px;">@item</li>
                                }
                            }
                        </ul>
                        <div class="left">
                            <input type="button" value="Back" class="btn btn-default" onclick="javascript: history.back(-1);" />
                        </div>
                     
                </div>
                <!-- /.box-body -->
            </div>
            
            @*<div class="error-content">
                <h3><i class="fa fa-warning text-red"></i> Oops! Something went wrong.</h3>
                <p>
                    We will work on fixing that right away,Meanwhile, you may try other functions.
                </p>
                <p>

                </p>
              
            </div>*@
    
        <!-- /.error-page -->
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
